package com.cloudbroker.bsc.common.search.exception;

/**
 * Created by moyin18602 on 2016/6/16.
 */
public class SearchEngineException extends RuntimeException {

    public SearchEngineException(String code){
        if(code.equals(SearchEngineErrorCode.formatErr.PARAM_LENGTH)){
            throw new elasticsearch("elasticsearch es range error");
        }
    }

    class elasticsearch extends RuntimeException{
        public elasticsearch(String msg){
            super(msg);
        }
    }
}
